<html >
 <head >
   <meta charset="utf-8"/>
<!-- <script type="text/javascript" src="../js/hellojs.js"></script> -->
<!-- <script type="text/javascript" src="../js/jsarray.js"></script> -->
<!-- <script type="text/javascript" src="../js/str.js"></script>  -->
 <script type="text/javascript" src="../js/arraybase.js"></script>
 <script type="text/javascript" src="../js/pageUtil2.js"></script>
 </head>

 <body>

 <div id="pagination"></div>

<script type="text/javascript">

    pageUtil.showPage("",1,10,100,10,'pagination');

function pagination(page,pagesize){

}

var arr = [23,12,1,34,116,8,18,37,56,50];
var arr2 = arr.sort(function(a,b){
    if (a>b) {
       return 1;
   }else if(a<b){
       return -1
   }else{
       return 0;
   }
})
console.log(arr2);
</script>

 </body>
</html>
